package com.ruoyi.sale.mapper;

import com.ruoyi.sale.domain.ApprovalProcess;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApprovalProcessMapper {

    /**
     * 查询审批表列表
     *
     * @param approvalProcess 审批表
     * @return 审批表集合
     */
    public List<ApprovalProcess> selectApprovalProcessList(ApprovalProcess approvalProcess);

    /**
     * 新增审批表
     *
     * @param approvalProcess 审批表
     * @return 结果
     */
    public int insertApprovalProcess(ApprovalProcess approvalProcess);

    /**
     * 修改审批表
     *
     * @param approvalProcess 审批表
     * @return 结果
     */
    public int updateApprovalProcess(ApprovalProcess approvalProcess);

    public int updateStatusInt(@Param("planId") Long planId);

}
